import Vue from 'vue'
import App from './App.vue'
import router from './router'
import './plugins/element.js'
// 引入全局样式
import './assets/css/global.css'

//引入字体图标库
import './assets/font-icon/iconfont.css'

//引入axios
import axios from 'axios'
//使用Vue axios插件
import VueAxios from "vue-axios"
Vue.use(VueAxios, axios)

// 挂载axios  在vue原始属性上挂载
// Vue.prototype.$axios = axios


//设置根访问路径
axios.defaults.baseURL = 'http://localhost:9000'

Vue.config.productionTip = false

new Vue({
  router,
  render: h => h(App)
}).$mount('#app')
